package com.ihrm.system.dao;


import com.github.pagehelper.Page;
import com.ihrm.domain.system.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserDao {
    Integer insert(User user);

    Page<User> pageFind(Map<String, Object> map);

    User selectById(String id);

    Integer update(User user);

    Integer del(String id);

    @Select("select * from bs_user where mobile = #{mobile}")
    User findByMobile(String mobile);

    Integer insertBatch(List<User> list);
}
